package com.ordering.entity;

public class Page
{
    private int totalRecord;
    private int page;
    private int pageSize;
    private int begin;
    private int end;
    
    public Page(int page,int pageSize){
        this.page = page;
        this.pageSize = pageSize;
        this.begin = (page-1)*pageSize;
        this.end = page*pageSize;
    }

    public int getTotalRecord()
    {
        return totalRecord;
    }

    public void setTotalRecord(int totalRecord)
    {
        this.totalRecord = totalRecord;
    }

    public int getPage()
    {
        return page;
    }

    public void setPage(int page)
    {
        this.page = page;
    }

    public int getPageSize()
    {
        return pageSize;
    }

    public void setPageSize(int pageSize)
    {
        this.pageSize = pageSize;
    }

    public int getBegin()
    {
        return begin;
    }

    public void setBegin(int begin)
    {
        this.begin = begin;
    }

    public int getEnd()
    {
        return end;
    }

    public void setEnd(int end)
    {
        this.end = end;
    }
}
